package com.jt.assistant.adapter

import android.annotation.SuppressLint
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import coil.load
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.jt.assistant.R
import com.jt.assistant.base.BaseApplication
import com.jt.assistant.bean.Car
import com.jt.assistant.bean.CarReceiveBean
import com.jt.assistant.bean.CarView

class CarViewAdapter(mData: MutableList<CarView>) :
    BaseQuickAdapter<CarView, BaseViewHolder>(
        R.layout.item_car_view, mData
    ) {

    @SuppressLint("SetTextI18n")
    override fun convert(holder: BaseViewHolder, item: CarView) {
        val text = holder.getView<TextView>(R.id.tv_text)
        text.text =
            "车牌: " + item.license + "   |   " + item.date + "\n" +
                    "联系人: " + item.linkMan + "   " + item.mobile + "\n" +
                    "起点: " + item.start + "\n" +
                    "终点: " + item.end + "\n" +
                    "运单总数: " + item.allWaybillNum + "     " +
                    "未验收数量: " + item.noCheckNum
    }


}